package c.e.a.b.b.h;

import android.content.Intent;
import android.content.ServiceConnection;
import b.i.b.f;
import java.util.Arrays;
import java.util.Objects;

public abstract class c {
    public static final Object a = new Object();
    public static c b;

    public static final class a {
        public final String a;
        public final String b;
        public final int c;

        public a(String str, String str2, int i) {
            f.N(str);
            this.a = str;
            f.N(str2);
            this.b = str2;
            this.c = i;
        }

        public final Intent a() {
            if (this.a != null) {
                return new Intent(this.a).setPackage(this.b);
            }
            return new Intent().setComponent(null);
        }

        public final boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            return f.r0(this.a, aVar.a) && f.r0(this.b, aVar.b) && f.r0(null, null) && this.c == aVar.c;
        }

        public final int hashCode() {
            return Arrays.hashCode(new Object[]{this.a, this.b, null, Integer.valueOf(this.c)});
        }

        public final String toString() {
            String str = this.a;
            Objects.requireNonNull(str);
            return str;
        }
    }

    public abstract boolean a(a aVar, ServiceConnection serviceConnection, String str);

    public abstract void b(a aVar, ServiceConnection serviceConnection, String str);
}
